import re
import os
print(os.path.dirname(__file__))

# p = re.compile("/[^/]+(?!.*/)")
# s = "https://www.shggzy.com/zcfgzhfg"
# res = p.search(s)
# print(res)

# start_urls = ["https://www.shggzy.com/zcfgzhfg"]
# for i in range(1, 8):
#     if i == 1:
#         url = start_urls[0]
#         print(url)
#     else:
#         url = start_urls[0] + '_' + str(i) + ".jhtml"
#         print(url)

# s = "发布时间：2021-10-26 10:56   信息来源：国家 浏览次数： "
# p1 = re.compile("(\d{4}-\d{1,2}-\d{1,2}\s\d{1,2}:\d{1,2})")
# p2 = re.compile("信息来源：(.*?)\s")
# res1 = p1.search(s).group(1)
# res2 = p2.search(s).group(1)
# print(res1)
# print(res2)


